"""
将路径处理成绝对路径 , 作为常量使用 .
    cookies.yaml
"""
from os.path import dirname, join

WE_COM_PATH = dirname(dirname(__file__))

COOKIES_YAML_PATH = join(WE_COM_PATH + '/', 'common/data_s/cookies/cookies.yaml')
LOG_PATH = join(WE_COM_PATH + '/', 'common/data_s/logs/we_com_log.out')
BUG_IMG_PATH = join(WE_COM_PATH + '/', 'common/data_s/bug_imgs/')
DATA_DEPARDMENT_PATH = join(WE_COM_PATH + '/', 'common/data_s/datas/add_department_datas.yaml')
DATAS_PATH = join(WE_COM_PATH + '/', 'common/data_s/datas.yaml')

QR_WAIT = 15
WAIT_TIMEOUT = 5
CLOSE_TIME = 1
IMPLICITLY_WAIT = 3
COOKIES_RELOAD_SLEEP_TIME = 2
CLICK_LOAD_SLEEP_TIME = 1
ALERT_TIME = 2

if __name__ == '__main__':
    print('WE_COM_PATH : ', WE_COM_PATH)
    print('COOKIES_YAML_PATH : ', COOKIES_YAML_PATH)
    print('LOG_PATH : ', LOG_PATH)
    print('BUG_IMG_PATH : ', BUG_IMG_PATH)
    print('DATA_DEPARDMENT_PATH : ', DATA_DEPARDMENT_PATH)
    print('DATAS_PATH : ', DATAS_PATH)

    print('WAIT_TIMEOUT : ', WAIT_TIMEOUT)
